package cn.tpshion.redismq.common;

import lombok.Getter;

/**
 * 返回状态码枚举
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "success"),

    BAD_REQUEST(400, "Bad Request"),

    UNAUTHORIZED(401, "Unauthorized"),

    FORBIDDEN(403, "Forbidden"),

    NOT_FOUND(404, "Not Found"),

    SIGN_ERROR(405, "Signature verification failed"),

    INTERNAL_SERVER_ERROR(500, "Internal Server Error"),

    BIZ_SERVER_ERROR(505, "服务端其他异常！"),

    SMY_FEIGN_ERROR(510, "远程调用异常！"),

    PAY_ERROR(501001, "支付异常！");

    private final int code;

    private final String message;

    ResultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
